package com.ruoyi.system.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 课程信息对象 mini_course
 * 
 * @author duantao
 * @date 2025-09-14
 */
public class MiniCourse extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 课程id */
    private Long courseId;

    /** 课程标题 */
    @Excel(name = "课程标题")
    private String courseName;

    /** 课程封面图地址 */
    @Excel(name = "课程封面图地址")
    private String courseImg;

    /** 课程视频OSS地址 */
    @Excel(name = "课程视频OSS地址")
    private String courseVideoUrl;

    /** 标准价 */
    @Excel(name = "标准价")
    private BigDecimal price;

    /** 视频是否收费（N-免费，Y-收费） */
    @Excel(name = "视频是否收费", readConverterExp = "N=-免费，Y-收费")
    private String chargeStatus;

    /** 排序 */
    @Excel(name = "排序")
    private Long sortNum;

    /** 删除标志（N-存在 Y-删除） */
    private String delFlag;

    public void setCourseId(Long courseId) 
    {
        this.courseId = courseId;
    }

    public Long getCourseId() 
    {
        return courseId;
    }

    public void setCourseName(String courseName) 
    {
        this.courseName = courseName;
    }

    public String getCourseName() 
    {
        return courseName;
    }

    public void setCourseImg(String courseImg) 
    {
        this.courseImg = courseImg;
    }

    public String getCourseImg() 
    {
        return courseImg;
    }

    public void setCourseVideoUrl(String courseVideoUrl) 
    {
        this.courseVideoUrl = courseVideoUrl;
    }

    public String getCourseVideoUrl() 
    {
        return courseVideoUrl;
    }

    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }

    public void setChargeStatus(String chargeStatus) 
    {
        this.chargeStatus = chargeStatus;
    }

    public String getChargeStatus() 
    {
        return chargeStatus;
    }

    public void setSortNum(Long sortNum) 
    {
        this.sortNum = sortNum;
    }

    public Long getSortNum() 
    {
        return sortNum;
    }

    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("courseId", getCourseId())
            .append("courseName", getCourseName())
            .append("courseImg", getCourseImg())
            .append("courseVideoUrl", getCourseVideoUrl())
            .append("price", getPrice())
            .append("chargeStatus", getChargeStatus())
            .append("sortNum", getSortNum())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
